package cn.schoolwow.util.module.query.queryPackage.service;

import cn.schoolwow.quickflow.domain.FlowContext;
import cn.schoolwow.quickflow.flow.BusinessFlow;
import cn.schoolwow.util.module.query.queryPackage.flow.ConvertToClassListFlow;
import cn.schoolwow.util.module.query.queryPackage.flow.FilterClassListFlow;
import cn.schoolwow.util.module.query.queryPackage.flow.GetClassNameListByPackageNameFlow;

public class GetClassListFlow implements BusinessFlow {
    @Override
    public void executeBusinessFlow(FlowContext flowContext) throws Exception {
        flowContext.startFlow(new GetClassNameListByPackageNameFlow())
                .next(new ConvertToClassListFlow())
                .next(new FilterClassListFlow())
                .execute();
    }

    @Override
    public String name() {
        return "获取类列表";
    }
}
